package com.jinmingwu.musicplay.data;

/**
 * Created by jinmingwu on 2018/9/14.
 */

public class Music {
    private int id; //编号
    private String name = null;     //歌曲名
    private String artist = null;   //艺术家
    private String path = null;     //路径
    private String duration = null; //长度
    private String album = null;    //专辑名

    public Music(int id, String name, String artist, String path, String duration, String album) {
        this.id = id;
        this.name = name;
        this.artist = artist;
        this.path = path;
        this.duration = duration;
        this.album = album;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return this.name;
    }

    public String getArtist() {
        return this.artist;
    }

    public String getPath() {
        return this.path;
    }

    public String getDuration() {
        return this.duration;
    }

    public String getAlbum() {
        return album;
    }

    @Override
    public String toString() {
        return name + " " + artist + " " + album;
    }
}
